// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import {DatePicker,Loading,Message,Radio,Select,Option} from 'element-ui';

// import ElementUI from 'element-ui';
// Vue.use(ElementUI);


Vue.use(DatePicker);
Vue.use(Select);
Vue.use(Option);
Vue.use(Radio);

Vue.use(Loading.directive);
Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = Message;


import store from './store'

import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'
import qs from 'qs'

Vue.prototype.$axios = axios
Vue.prototype.$qs = qs


// axios.defaults.baseURL = 'http://hlx.51appdevelop.com/'

// import echarts from 'echarts';
import CKEditor from '@ckeditor/ckeditor5-vue';

Vue.use( CKEditor );

import QRCode from 'qrcodejs2';

import VueCookies from 'vue-cookies'
Vue.use(VueCookies)


import {
    get,
    islogin

} from '@/assets/js/common.js'

Vue.prototype.$get = get
Vue.prototype.$islogin = islogin

// const wx = require('weixin-js-sdk');

// Vue.prototype.$echarts = echarts

Vue.prototype.$QRCode = QRCode

// var echarts = require('echarts');
// Vue.use(ElementUI)

// Vue.use(echarts)

Vue.config.productionTip = false

axios.defaults.baseURL = 'https://hlx.51appdevelop.com/'

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
})